package com.fih.study.dubboprovider.provider;

import com.fih.study.dubbodemoapi.api.HelloWorldApi;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@Slf4j
@DubboService(version = "1.0.0")
public class HelloWorldService implements HelloWorldApi {

    private static final String OUT_FMT = "Hello %s";

    @Override
    public String sayHello(String name) {
        log.info("sayHello name:{}", name);
        return String.format(OUT_FMT, name);
    }
}
